<template>
	<view>
		<view class="p-10">
			<mp-html :content="info?.content" selectable class="text-wrap content"></mp-html>
		</view>
	</view>
</template>

<script setup>
	import { ref } from 'vue'
	import { onLoad } from '@dcloudio/uni-app'
	import { $http } from '@/utils/index';
	const info = ref()
	onLoad((option) => {
		getTag(option.name)
	})
	const getTag = ((name) => {
		$http.get('Tag/getDetail', { name: name }).then(res => {
			info.value = res.data
			uni.setNavigationBarTitle({
				title: info.value.title
			})
			
		})

	})
</script>

<style scoped>
	page {
		background-color: #fff;
	}

	.content ._img {
		max-width: 100%;
		white-space: wrap;
	}
</style>